import React from 'react'
import { FormattedMessage } from 'react-intl'
import {Row} from 'antd'
import {TwsReactMarkdownPreview} from 'tws-antd'

const BlankQuiz = ({formItemLayout, FormItem, quiz}) => {
  return (
    <Row>
      <FormItem {...formItemLayout} label={<FormattedMessage id='描述' />}>
        <TwsReactMarkdownPreview source={quiz.description} />
      </FormItem>
      <FormItem {...formItemLayout} label={<FormattedMessage id='答案' />}>
        <span>{quiz.answer}</span>
      </FormItem>
    </Row>)
}

export default BlankQuiz
